package com.cloud.zhimao.common.config.mybatisPlus;

import com.baomidou.mybatisplus.core.config.GlobalConfig;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * @author Long
 */
@Component
@Configuration
public class MyBatisPlusConfig {

    /**
     * 自动填充功能
     * @return
     */
    public GlobalConfig globalConfig() {
        GlobalConfig globalConfig = new GlobalConfig();
        globalConfig.setMetaObjectHandler(new MetaHandler());
        return globalConfig;
    }

}
